package com.food.service.impl;

import com.food.entity.pojo.TOP10;
import com.food.mapper.TOP10Mapper;
import com.food.service.TOP10Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TOP10ServiceImpl implements TOP10Service {

    @Autowired
    private TOP10Mapper top10Mapper;

    @Override
    public List<TOP10> list() {
        return top10Mapper.selectList(null);
    }
}
